package com.midian.service.device;

import java.util.List;

import com.midian.model.device.Device;
import com.midian.service.common.IBaseService;

/**
 * 设备号表业务
 * @author Mengfh
 *
 */
public interface IDeviceService extends IBaseService<Device> {

	/**是否接受推送 1是*/
	public static Integer ISRECEIVE_YES = 1;
	/**是否接受推送 2否*/
	public static Integer ISRECEIVE_NO = 2;
	/**安卓设备*/
	public static String DEVICE_ANDRIOD = "a";
	/**苹果设备*/
	public static String DEVICE_IOS = "i";
	
//	public Device getDeviceByUserId(String userId);
	/***
	 * 获取某一类型的设备列表
	 * @param type
	 * @return
	 */
	public List<Device> getDeviceListByType(String type,Integer currentPage,Integer pageSize);
	/**
	 * 获取出isreceive为1的所有设备
	 * @param isReceive
	 * @return
	 */
	public List<Device> getDeviceListByIsReceive(Integer isReceive,String type);
}
